package cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.other;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.user.other.OtherInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProfessionalInfo {
    private int professionalId;
    private int professionalKindId;
    private int professionalNameId;

    public ProfessionalInfo(OtherInfo otherInfo) {
        this.professionalKindId = otherInfo.getProfessionalKindId();
        this.professionalNameId = otherInfo.getProfessionalNameId();
    }
}
